package com.example.sys

import com.example.lib_common.mvi.ResponseEntity
import com.example.sys.login.LoginEntity
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiService {
    @GET("feeds/queryHotFeedsList?feedId=0&feedType=all&pageCount=10&userId=0")
    fun requestHot(): Flow<ResponseEntity<HomeFeedEntity>>

    @POST("sysUser/loginUser")
    fun requestLogin(@Body body: RequestBody): Flow<ResponseEntity<LoginEntity>>
}